package StnNetworkResourcesNRMProfile;


/**
 * Generated from IDL interface "MtpLinkSetTp".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public abstract class MtpLinkSetTpPOA
	extends org.omg.PortableServer.Servant
	implements org.omg.CORBA.portable.InvokeHandler, StnNetworkResourcesNRMProfile.MtpLinkSetTpOperations
{
	static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
	static
	{
		m_opsHash.put ( "_get_UserLabel", new java.lang.Integer(0));
		m_opsHash.put ( "_get_MtpLinkSetTpId", new java.lang.Integer(1));
		m_opsHash.put ( "_get_ObjectClass", new java.lang.Integer(2));
		m_opsHash.put ( "_get_ObjectInstance", new java.lang.Integer(3));
		m_opsHash.put ( "_get_AdjPc", new java.lang.Integer(4));
		m_opsHash.put ( "_set_UserLabel", new java.lang.Integer(5));
	}
	private String[] ids = {"IDL:StnNetworkResourcesNRMProfile/MtpLinkSetTp:1.0","IDL:GenericNRMProfile/Top:1.0"};
	public StnNetworkResourcesNRMProfile.MtpLinkSetTp _this()
	{
		return StnNetworkResourcesNRMProfile.MtpLinkSetTpHelper.narrow(_this_object());
	}
	public StnNetworkResourcesNRMProfile.MtpLinkSetTp _this(org.omg.CORBA.ORB orb)
	{
		return StnNetworkResourcesNRMProfile.MtpLinkSetTpHelper.narrow(_this_object(orb));
	}
	public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
		throws org.omg.CORBA.SystemException
	{
		org.omg.CORBA.portable.OutputStream _out = null;
		// do something
		// quick lookup of operation
		java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
		if ( null == opsIndex )
			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
		switch ( opsIndex.intValue() )
		{
			case 0: // _get_UserLabel
			{
			_out = handler.createReply();
			_out.write_string(UserLabel());
				break;
			}
			case 1: // _get_MtpLinkSetTpId
			{
			_out = handler.createReply();
			_out.write_string(MtpLinkSetTpId());
				break;
			}
			case 2: // _get_ObjectClass
			{
			_out = handler.createReply();
			_out.write_string(ObjectClass());
				break;
			}
			case 3: // _get_ObjectInstance
			{
			_out = handler.createReply();
			_out.write_string(ObjectInstance());
				break;
			}
			case 4: // _get_AdjPc
			{
			_out = handler.createReply();
			_out.write_ulong(AdjPc());
				break;
			}
			case 5: // _set_UserLabel
			{
			_out = handler.createReply();
			UserLabel(_input.read_string());
				break;
			}
		}
		return _out;
	}

	public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
	{
		return ids;
	}
}
